package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.Exams;
import com.wuseguang.springcloud.entity.TeacherSubscription;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface TeacherSubscriptionRepository extends JpaRepository<TeacherSubscription,Integer> {


    @Query(value = "select * from teacher_subscription where teacher_id = ?1 ",nativeQuery = true)
    TeacherSubscription findByTeacherId(String teacherId);
}
